You can also specify parameter values and other attributes when submitting a job. Here's an example of submitting a job including setting parameter and Job attributes.
Submitting a Job with Parameters |
Copy Code
|
---|---|
// // Get a connection to our JAMS Server // You will probably have to change the node name "localhost" // to the name of your JAMS Server // MVPSI.JAMS.Server server = MVPSI.JAMS.Server.GetServer("localhost"); // // Load the job that we want to submit // MVPSI.JAMS.Submit.Info si; MVPSI.JAMS.Submit.Load(out si, "BackupDB", server); // // Set the Parameters that the job needs // We could also set batch queues, start times etc. // si.Parameters["DBNAME"].ParamValue = "MYDB"; si.Parameters["TARGET"].ParamValue = "DISK='C:\\BACKUPS\\MDB.BCK'"; // // Increase the scheduling priority // si.SchedulingPriority += 5; // // Finish the submit // si.Submit(); |